import Cookies from 'js-cookie'
import storage from 'good-storage'
// 添加 查找 删除 token

const TokenKey = 'user_token'

export function getToken() {
    return Cookies.get(TokenKey)
}

export function setToken(token) {
    return Cookies.set(TokenKey, token)
}

export function removeToken() {
    return Cookies.remove(TokenKey)
}

// 添加 查找 删除 username

const UsernameKey = 'user_token'

export function getUsername() {
    return Cookies.get(UsernameKey)
}

export function setUsername(username) {
    return Cookies.set(UsernameKey, username)
}

export function removeUsername() {
    return Cookies.remove(UsernameKey)
}